package cn.historia.test.domain.rebate;

import cn.historia.domain.rebate.model.entity.BehaviorEntity;
import cn.historia.domain.rebate.model.valobj.BehaviorTypeVO;
import cn.historia.domain.rebate.service.BehaviorRebateService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @package: cn.historia.test.domain.rebate
 * @className: BehaviorRebateServiceTest
 * @author: 云溪
 * @description: 行为返利单测
 * @date: 2025/10/2 16:18
 * @version: 1.0
 */

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class BehaviorRebateServiceTest {

    @Resource
    private BehaviorRebateService behaviorRebateService;

    @Test
    public void test_createOrder() {
        BehaviorEntity behaviorEntity = new BehaviorEntity();
        behaviorEntity.setUserId("dyx");
        behaviorEntity.setBehaviorTypeVO(BehaviorTypeVO.SIGN);
        behaviorEntity.setOutBusinessNo("20251002");
        List<String> orderIds = behaviorRebateService.createOrder(behaviorEntity);
        log.info("测试结果：{}", orderIds);
    }




}
